package com.hodgepodge.web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * title WebApplication
 * projectName colorful-blog
 * desc 启动类
 *
 * @author jiangjian
 * @date 2020/9/20 14:38
 */
@MapperScan("com.hodgepodge.api.mapper")
@ComponentScan(basePackages = {
        "com.hodgepodge.web",
        "com.hodgepodge.api.service",
        "com.hodgepodge.config",
        "com.hodgepodge.commons.exception"
})
@SpringBootApplication
@EnableTransactionManagement
public class WebApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class, args);
    }

}
